package cc.shacocloud.mirage.demo.kotlin.config

import cc.shacocloud.mirage.bean.bind.Component
import cc.shacocloud.mirage.restful.MirageRestfulConfigurer
import cc.shacocloud.mirage.restful.StaticResourceHandlerRegistry

/**
 * @author 思追(shaco)
 * @date 2023/3/22
 */
@Component
class DemoRestfulConfigurer : MirageRestfulConfigurer {

    override fun registerStaticResourceHandler(registry: StaticResourceHandlerRegistry) {
        registry.addRootHandler("classpath:static", *arrayOf("/*"))
    }
}